package org.example.service.impl;

import org.example.domin.Student;
import org.example.service.StudentService;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service("StudentService")
public class StudentServiceImpl implements StudentService {
    @Override
    public Student get() {
        Student student=new Student();
        student.setAge(22);
        student.setName("张三");
        System.out.println("执行了获取学校的方法：获取学生："+student.toString());
        return null;
    }

    @Override
    public void add(Student student) {
        System.out.println("执行了新增学校的方法：新增学生："+student.toString());
    }

    @Override
    public void doSome() {
        System.out.println("执行了学校服务的其他方法");
    }
}
